home *** CD-ROM | disk | FTP | other *** search
/ Cracking 2 / Cracking II..iso / Kompresni & kodovaci programy / ucl-0.91 / acconfig / m4 / bool.m4 next >
M4 Source File  |  1998-07-09  |  544b  |  21 lines

  1. dnl ### Checking for builtin bool type.
  2.  
  3. # serial 1
  4.  
  5. AC_DEFUN(mfx_CHECK_BOOL,
  6. [
  7.         AC_MSG_CHECKING([for bool])
  8.         AC_CACHE_VAL(mfx_cv_have_bool,
  9.         [
  10.                 AC_LANG_CPLUSPLUS
  11.                 AC_TRY_COMPILE([],
  12.                  [bool a = true; bool b = false;],
  13.                  [mfx_cv_have_bool="yes"],
  14.                  [mfx_cv_have_bool="no"])
  15.         ]) dnl end AC_CHECK_VAL
  16.         AC_MSG_RESULT($mfx_cv_have_bool)
  17.         if test "$mfx_cv_have_bool" = "yes"; then
  18.                 AC_DEFINE(HAVE_BOOL)
  19.         fi
  20. ])
  21.